﻿using System;
using System.Collections.Generic;
using System.Text;
using Placid.Core;

namespace Placid.PivotSourceImpl
{
    public class PivotSourceCell : IPivotSourceCell
    {
        private object _value;

        internal protected PivotSourceCell(object value)
        {
            _value = value;
        }

        #region IPvSourceCell Members

        public object Value
        {
            get
            {
                return _value;
            }
            set
            {
                _value = value;
            }
        }

        #endregion

        public override string ToString()
        {
            if (_value != null) return _value.ToString();
            else return "[null]";
        }
    }
}
